package arbori;
import visitor.*;

public class ArboreFunctional {
	private Nod radacina;
	
	public ArboreFunctional(Nod r)
	{
		this.radacina=r;
	}
	public Nod getRadacina()
	{
		return this.radacina;
	}
	public void setRadacina(Nod r)
	{
		this.radacina=r;
	}
	public void acceptVisitor(Visitor v)
	{
		v.visit(radacina);
	}
	public String toString()
	{
		return radacina.toString();
	}


}
